package Beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "msgproblem")
public class MsgProblem {

	private int id;
	private String phone;
	private String platform;
	private String content;
	private String reason;
	private String signman;
	
	public MsgProblem() {
		super();
	}

	/**
	 * 问题短信信息构造函数
	 * 
	 * @param phone
	 * @param platform
	 * @param content
	 * @param reason
	 * @param signman
	 */
	public MsgProblem(String phone, String platform, String content,
			String reason, String signman) {
		this.phone = phone;
		this.platform = platform;
		this.content = content;
		this.reason = reason;
		this.signman = signman;
	}

	@GenericGenerator(name = "generator", strategy = "native")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "msgproblem_id", unique = true, nullable = false)
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "msgproblem_phone")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "msgproblem_platform")
	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	@Column(name = "msgproblem_content")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "msgproblem_reason")
	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Column(name = "msgproblem_signman")
	public String getSignman() {
		return signman;
	}

	public void setSignman(String signman) {
		this.signman = signman;
	}

}
